<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login</title>
</head>
<body>
<form name="loginForm" action="login" method="POST">
<jsp:useBean id="loginFormHandler" class="com.ochnas.volunteersignup.ui.LoginFormHandler" scope="session" />
<jsp:setProperty name="loginFormHandler" property="*"/>
<font size=2 color=red><%=loginFormHandler.getErrorMsg("errMsg") %></font>
<table>
	<tr>
		<td>Email:</td>
		<td>
			<input type="text" name="emailAddress" value='<%=loginFormHandler.getEmailAddress() %>'>
			<br><font size=2 color=red><%=loginFormHandler.getErrorMsg("emailAddress") %></font>
		</td>
	</tr>
	<tr>
		<td>Password:</td>
		<td>
			<input type="password" name="password" value='<%=loginFormHandler.getPassword() %>'>
			<br><font size=2 color=red><%=loginFormHandler.getErrorMsg("password") %></font>
		</td>
	</tr>
	<tr>
	<td></td>
	<td><input type="submit" value="Login"></td>
	</tr>
</table>

<table>
<tr>
<th>Don't have an account?</th>
</tr>
<tr>
<td align="center">
<a href="NewAccount.jsp">Create a new account.</a>
</td>
</tr>
</table>

</form>
</body>
</html>